/*
 * wait.c
 *
 *	waits for 1ms
 *  Created on: 06.05.2011
 *      Author: tobias
 */
#include <avr/io.h>
#include "ses_wait.h"

void wait(uint16_t delay){
	uint16_t temp;

	while(delay){
		delay--;

		temp = 2000;
		while(temp){
			temp--;
			asm volatile ("nop");
		};

	}
}
